package com.lzyyj.gmis.base.model;

import java.io.Serializable;

import javax.persistence.MappedSuperclass;

/**
 * 
 * @TO User 基础实体
 * @des 基础用户
 * @author lzyyj
 * @date 2012-12-20
 * @version v 1.0
 */
@MappedSuperclass
public interface IUser<PK extends Serializable> extends INamed {
		
	public PK getId();
	
	public void setId(PK id);

	public String getLoginName();

	public void setLoginName(String loginName);

	public String getPassword();
	
	public void setPassword(String password);

	/**
	 * 验证密码是否正确
	 * @param password
	 * @return
	 */
	public boolean validatePassword(String password);

	public void updatePassword(String password);
	
}
